package com.kuolie.answer.mapper;

import com.baomidou.mybatisplus.mapper.BaseMapper;
import com.kuolie.answer.entity.User;
import org.apache.ibatis.annotations.Select;

/**
 * 用户信息接口
 */
public interface UserMapper extends BaseMapper<User> {

    //通过OpenId查询用户信息
    @Select("select * from user where openid = ?")
    User findByOpenid(String openid);

}
